package com.xunk.equipment.service.zhijia.vo;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @ProjectName: HIM
 * @Package: com.xunk.equipment.service.zhijia.vo
 * @ClassName: WebSocketResponse
 * @Author: luanzhiwei
 * @Description: websocket请求应答实体类
 * @Date: 2021/4/25 10:22
 * @Version: 1.0
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
@ToString
public class WebSocketAck {

    /**
     * 操作说明，例如 authenticate-ack
     */
    private String cmd;

    /**
     * 响应结果
     */
    private DataEntity data;

    @Data
    @NoArgsConstructor
    @EqualsAndHashCode
    @ToString
    public class DataEntity {
        /**
         * 返回码，00000成功，00001失败
         */
        private String code;
        /**
         * 返回提示语
         */
        private String result;
        /**
         * 应用id
         */
        private String systemId;

        /**
         * 订阅返回描述
         */
        private String desc;
    }
}
